package com.example.cloud.dao.business.medical;

import com.example.cloud.model.business.medical.TreatPlanCourseRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/5/17.
 */
@Repository
public interface TreatPlanCourseRecordRepository extends JpaRepository<TreatPlanCourseRecord,Long> {
    List<TreatPlanCourseRecord> findByPatientIdAndDeleteFlag(Long patientId, int deleteFlag);
    List<TreatPlanCourseRecord> findByIdIn(Long[] ids);
    List<TreatPlanCourseRecord> findByPatientIdAndIdLessThan(Long patientId, Long id);
}
